﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CloudUpload
{
    public partial class Settings : Form
    {
        public Settings(string Account, string Container, string Signature, bool bUseHttps)
        {
            InitializeComponent();

            tbAccount.Text = Account;
            tbContainer.Text = Container;
            tbSignature.Text = Signature;
            cbhttps.Checked = bUseHttps;
        }

        public DialogResult ShowDialog(IWin32Window parent, out string Account, out string Container, out string Signature, out bool bUseHttps)
        {
            DialogResult dr = ShowDialog(parent);

            Account = tbAccount.Text;
            Container = tbContainer.Text;
            Signature = tbSignature.Text;
            bUseHttps = cbhttps.Checked;

            return dr;
        }
    }
}
